package com.gpframework.module.module.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.module.mapper.GpQualityFeedbackQuestionMapper;
import com.gpframework.module.module.domain.GpQualityFeedbackQuestion;
import com.gpframework.module.module.domain.vo.GpQualityFeedbackQuestionVo;
import com.gpframework.module.module.service.IGpQualityFeedbackQuestionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
/**
 * @ClassName GpQualityFeedbackQuestion
 * @Author gpframework
 * @Date 2023-12-14
 * @Version 1.0.0
 * @Description 品质反馈问题Service业务层处理
 */
@Service
public class GpQualityFeedbackQuestionServiceImpl extends ServiceImpl<GpQualityFeedbackQuestionMapper, GpQualityFeedbackQuestion> implements IGpQualityFeedbackQuestionService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2023-12-14
     * @Param [lqw]
     * @Return List<GpQualityFeedbackQuestionVo>
     */
    @Override
    public List<GpQualityFeedbackQuestionVo> listVo(QueryWrapper<GpQualityFeedbackQuestion> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2023-12-14
     * @Param [id]
     * @Return GpQualityFeedbackQuestionVo
     */
    @Override
    public GpQualityFeedbackQuestionVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }

    @Override
    public List<GpQualityFeedbackQuestionVo> replyTypeList() {
        return this.baseMapper.replytypelist();
    }

    @Override
    public List<GpQualityFeedbackQuestionVo> replyContent(String replytype) {
        return this.baseMapper.replyContent(replytype);
    }

    @Override
    public int getCount(QueryWrapper<GpQualityFeedbackQuestion> lqw) {
        return this.baseMapper.getCount(lqw);
    }

}
